package com.xckj.ibox.ui.fragment;

import android.annotation.SuppressLint;

import com.xckj.ibox.R;
import com.xckj.ibox.databinding.FragmentTransactionBinding;
import com.xckj.ibox.framework.BaseFragment;
import com.xckj.ibox.global.Constant;

/**
 * @Author: ChenYao
 * @Describe: 交易
 * @Date: 2023/6/14 16:57
 */
public class TransactionFragment extends BaseFragment<FragmentTransactionBinding> {
    private final String h5Url = Constant.H5Address.TRANSACTION_URL;

    @Override
    protected boolean isStatusBarDarkFont() {
        return false;
    }

    @Override
    protected int loadLayout() {
        return R.layout.fragment_transaction;
    }

    @Override
    protected void initData() {
        initWebView();
    }

    @SuppressLint("SetJavaScriptEnabled")
    private void initWebView() {
        dataBinding.webView.setHorizontalScrollBarEnabled(false);
        dataBinding.webView.loadUrl(h5Url);
    }
}
